package com.yuyou.weixin.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.yuyou.weixin.entity.SrsActivity;
import com.yuyou.weixin.vo.req.ReqAddPrize;
import com.yuyou.weixin.vo.req.ReqCloseActivity;
import com.yuyou.weixin.vo.resp.UserInfoExcel;

@Mapper
public interface SrsActivityMapper {
    int deleteByPrimaryKey(Long srsActivityId);

    int insert(SrsActivity record);

    SrsActivity selectByPrimaryKey(Long srsActivityId);
    
    SrsActivity selectBySrsUserId(@Param(value = "srsUserId")Long srsUserId,@Param(value = "projectCode") String projectCode);

    int updateByPrimaryKeySelective(SrsActivity record);

    List<Long> findCompletedNoUpdate(@Param(value = "activeCount")Integer activeCount);

    void updateByIds(List<Long> list);

    Integer findActiveCountBYOpenId(@Param(value = "openId") String openId,@Param(value = "projectCode") String projectCode);

    void updatePrizeByOpenId(ReqAddPrize reqAddPrize);

    void closeByOpenId(ReqCloseActivity reqCloseActivity);
     
    List<UserInfoExcel> findUserInfo(String projectCode);
}